package per.wxp.apigate;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.cloud.netflix.zuul.EnableZuulServer;
import org.springframework.context.annotation.Bean;

import per.wxp.apigate.filter.AccessFilter;

@EnableZuulProxy
@SpringBootApplication
public class ApiGateApplication {

	public static void main(String[] args) {
		new SpringApplicationBuilder(ApiGateApplication.class).web(true).run(
				args);
	}
	
	@Bean
	public AccessFilter accessFilter() {
		return new AccessFilter();
	}

}
